/**
 * Load 
 *
 * @author 李鑫辉
 */
function load ( 
               url,
               params, 
               dataType, 
               successCallBack, 
               errorCallBack, 
               callbackParamObj ) {
        
    var error_call_back = errorCallBack || loadErrorCallBack;
    var success_call_back = successCallBack || loadSuccessCallBack;
    var data_type = dataType;//html,json
    $.ajax({
       type: "POST",
       url: url,
       dataType: data_type,
       data: params,
       timeout: 100000,
       error: function() {
           //error_call_back(params);
       },
       success: function(data) {
       
           if( data_type != null ) {
           
               if( data_type == 'html' ){
               
                    success_call_back(data, callbackParamObj);
                    
               } else if( data_type == 'json' ) {//json
               
                    if( data.status == 0 ){
                        success_call_back(data.content, callbackParamObj);
                    } else {
                        error_call_back(data, callbackParamObj);
                    }
               }
           }
       }
    });
}

function loadErrorCallBack( data ) {
    alert(data.content);
}

function loadSuccessCallBack() {
}

function refresh() {
    document.location.reload();
}